#!/bin/sh
BUILD_AUX_PATH="build-aux" #autoreconf
M4_PATH="m4"
if [ -d "$BUILD_AUX_PATH" ]; then
	echo "$BUILD_AUX_PATH exist"
else
	mkdir $BUILD_AUX_PATH
fi

if [ -d "$M4_PATH" ]; then
	echo "$M4_PATH exist"
else
	mkdir $M4_PATH
fi

autoreconf --verbose --force --install --make || {
	echo 'autogen.sh failed';
	exit 1;
}
 
echo
echo "Now you can 'configure' then 'make'"
echo
